package com.jsmile.cloud.promotioncenter.activity.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2020年06月07日 10:57:35
 */
@ApiModel
@Data
@TableName("p_template")
public class Template extends Model<Template> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;
    @ApiModelProperty(value = "活动主图")
    private String imageUrl;
    @ApiModelProperty(value = "活动名称")
    private String templateName;
    @ApiModelProperty(value = "活动描述")
    private String templateDesc;
    @ApiModelProperty(value = "几人成团")
    private Integer groupLimit;
    @ApiModelProperty(value = "开团模式，1 快递，2: 自提")
    private Integer deliveryType;
    @ApiModelProperty(value = "结束时间")
    private java.util.Date endTime;
    @ApiModelProperty(value = "开始时间")
    private java.util.Date startTime;
    @ApiModelProperty(value = "状态，1：新建(废弃)，2：已发布，3：已结束")
    private Integer templateStatus;
    @ApiModelProperty(value = "店铺id")
    private Long shopId;
    @ApiModelProperty(value = "create_time")
    private java.util.Date createTime;
    @ApiModelProperty(value = "update_time")
    private java.util.Date updateTime;
    @ApiModelProperty(value = "创建者")
    private String createBy;
    @ApiModelProperty(value = "更新者")
    private String updateBy;
    @ApiModelProperty(value = "删除标记")
    @TableLogic
    private Integer delFlag;
    @ApiModelProperty(value = "tenant_id")
    private Long tenantId;
    @ApiModelProperty(value = "模板类型  1团购  2秒杀")
    private Integer templateType;
    @ApiModelProperty(value = "0.停用 1启用")
    private Integer enable;
    @ApiModelProperty(value = "自动凑单 1是0否")
    private Integer autoBill;
    @ApiModelProperty(value = "平台id")
    private Integer platformId;
    @ApiModelProperty(value = "业务id")
    private Integer bizCode;

}
